import React, { Component } from 'react';
import { NavLink} from 'react-router-dom';
import {connect} from 'react-redux';
class View extends Component {

    render(){
        console.log(this.props)
        // const list = this.props.add.map((val,key)=>{
        //     return(
        //         <li key={val.id}>
        //                <span>{val.id}</span>
        //         </li>
        //     )
        // })
        return(
            <div>
                <NavLink to="/">这是首页</NavLink><br/>
                <NavLink to="/filter">filter</NavLink><br/>
                <NavLink to="/add">add</NavLink><br/>
                这是filter
               {/**<ul>{list}</ul>*/}
            </div>
        )
    }
}
export default connect(null,null)(View);
